﻿@model ZDSoft.UPMS.Model.BusinessPart.Term
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title>Update</title>
    <script src="../../Scripts/PageCreater/Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="../../Scripts/PageCreater/Scripts/PageCreater.js" type="text/javascript"></script>
    <link href="../../Scripts/PageCreater/Css/Style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(document).ready(function () {
            var str = "Name,名称,false,text,notnull,"
                   + "StartTime,开始时间,false,text,notnull,"
                   + "StopTime,结束时间,false,text,notnull,"
            CreatePageFramWithValue(str, "/Term/GetById");
        })

        function SubmitPage() {

            $.ajax({
                type: "POST",
                url: "/Term/Update",
                data: { ID: function () { return getUrlPara() }, Name: function () { return $("#Name").val() }, StartTime: function () { return $("#StartTime").val() }, StopTime: function () { return $("#StopTime").val() } },
                success: function () {
                    alert("修改成功！");
                    window.location = "/Term/Index";
                }
            });
        }
    </script>
</head>
<body>
    <div class="Content">
        <p>
            @Html.ActionLink("返回列表", "Index")
        </p>
        <form id="Info" method="post">
        <fieldset>
            <legend>请输入基本信息</legend>
            <div id="divContent">
            </div>
        </fieldset>
        <p>
            <input id="btnSubmit" type="button" value="保存" class="btn3" onclick="SubmitPage()" /></p>
        </form>
    </div>
</body>
</html>
